package com.general.message.notice.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.general.message.notice.entity.NoticeInfo;

import java.util.List;

public interface INoticeInfoService extends IService<NoticeInfo>{

    IPage<NoticeInfo> searchNotifications();

    IPage<NoticeInfo>  getAllInfo();

    public List<String> getUserList(String menuId);

    /**
     * 未读改已读e
     *
     * @param noticeId 通知id
     */
    boolean readNotice(int noticeId);

    /**
     * 全部已读
     *
     * @return boolean
     */
    boolean readAllNotice();

    List<String> getUserLists(List<String> menuIdList);
}
